home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntinc20 / regexp.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  942b  |  38 lines

  1. /* The <regexp.h> header is used by the (V8-compatible) regexp(3) routines. */
  2.  
  3. #ifndef _REGEXP_H
  4. #define _REGEXP_H
  5.  
  6. #ifndef _COMPILER_H
  7. #include <compiler.h>
  8. #endif
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. #define CHARBITS 0377
  15. #define NSUBEXP  10
  16. typedef struct regexp {
  17.     char *startp[NSUBEXP];
  18.     char *endp[NSUBEXP];
  19.     char regstart;        /* Internal use only. */
  20.     char reganch;        /* Internal use only. */
  21.     char *regmust;        /* Internal use only. */
  22.     int regmlen;        /* Internal use only. */
  23.     char program[1];    /* Unwarranted chumminess with compiler. */
  24. } regexp;
  25.  
  26.  
  27. __EXTERN regexp *regcomp __PROTO((char *_exp));
  28. __EXTERN int     regexec    __PROTO((regexp *_prog, char *_string, int _bolflag));
  29. __EXTERN void regsub    __PROTO((regexp *_prog, char *_source, char *_dest));
  30. __EXTERN void regerror    __PROTO((char *_message));
  31. __EXTERN void regdump __PROTO((regexp *r));
  32.  
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36.  
  37. #endif /* _REGEXP_H */
  38.